//
// Created by jwhww on 25-11-6.
//

#ifndef CONNECTION_C_BOARD_H
#define CONNECTION_C_BOARD_H


//底盘信息
typedef struct {
    uint16_t can_id;    //报头
    int16_t speed_actual_X;
    int16_t speed_actual_Y;
    int16_t speed_actual_Z;
    int16_t power_actual_x100;
}CBoard_Info;    //小端序

void CBoard_connect_Init(void);     //初始化C板连接
void CBoard_connect_Load(int16_t speed_set_X, int16_t speed_set_Y, int16_t speed_set_Z, int16_t power_allowable_percentage);    //装载C板发送数据内容
void CBoard_connect_Receive(const uint8_t* rx_data); //接收C板数据
void CBoard_connect_SendtoDOWN(CAN_HandleTypeDef *hcan); //向底盘主板发送数据

#endif //CONNECTION_C_BOARD_H
